package com.eui.demo.demonodes.model
{
	import com.eui.arch.application.model.NodePM;
	import com.eui.arch.util.PMContext;

	import flash.utils.getQualifiedClassName;

	[Bindable]
	public class UnsavedChangePM extends NodePM
	{
		public static const MANAGED_PM_ID:String = getQualifiedClassName(UnsavedChangePM);

		public static function getInstance():UnsavedChangePM
		{
			return PMContext.getInstance().getPM(MANAGED_PM_ID) as UnsavedChangePM;
		}

		public function UnsavedChangePM()
		{
		}

		override public function pmId():String
		{
			return MANAGED_PM_ID;
		}

		override public function isDataChanged():Boolean
		{
			return defaultValue != data;
		}

		private var defaultValue:String = "default";
		public var data:String = "default";

	}
}